<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta name=”viewport” content=”width=device-width, initial-scale=1″ />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ASTS-客户工作台</title>
<script src="/customer_plat/public/javascripts/assets/js/jquery1.11.1.min.js"></script>
<script type="text/javascript" src="/customer_plat/public/javascripts/assets/chosen/amazeui.chosen.js"></script>
<script type="text/javascript" src="/customer_plat/public/javascripts/echarts-all.js?t=${System.currentTimeMillis()}"></script>

<link rel="stylesheet" href="/customer_plat/public/javascripts/assets/css/amazeui.min.css" />
 <link rel="stylesheet" href="/customer_plat/public/javascripts/assets/css/admin.css">
 <link rel="stylesheet" href="/customer_plat/public/javascripts/assets/chosen/amazeui.chosen.css" />
  <link rel="stylesheet" href="/customer_plat/public/select2/select2.min.css" />
 
<!--[if lt IE 9]>
<script src="/customer_plat/public/javascripts/assets/js/jquery1.11.1.min.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/modernizr.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/polyfill/rem.min.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/polyfill/respond.min.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/amazeui.legacy.js"></script>
<![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/customer_plat/public/javascripts/stringBuffer.js"></script>
<script src="/customer_plat/public/javascripts/assets/js/amazeui.min.js"></script>
<script type="text/javascript" src="/customer_plat/public/javascripts/assets/chosen/amazeui.chosen.js"></script>
<!--<![endif]-->
<script src="/customer_plat/public/javascripts/assets/js/app.js"></script>
 <script type="text/javascript" src="/customer_plat/public/select2/select2.min.js"></script>
<script>
 
	function goUrl(url) {
		window.location.href = url;
	}
</script>
<!-- content start -->
<script>

	$(function() {
		var type = "${json?.conditions?.type}";
		if(type!=""){
			$("#type").val(type);
		} 
	 	})
</script>
<body style="height: 100%;">
<div class="admin-content"   >
	<div class="am-cf am-padding">
		<div class="am-fl am-cf">
			<strong class="am-text-primary am-text-lg">日志查询</strong> / <small>LogsManage</small>
		</div>
	</div>
			<form action="index" method="post" id="myForm"> 
	 <div class="am-u-md-12">
 				   <label class="am-padding-left-0" >用户名:</label>
				   <input class="form-control" type="text" id="userName" value="${json.conditions.userName}" name ="userName" placeholder="输入用户名">
				   		&nbsp;&nbsp;
				   <label class="am-padding-left-0" >真实姓名:</label>
				   <input class="form-control" type="text" id="realName"  value="${json.conditions.realName}"  name ="realName" placeholder="输入真实姓名">
 					&nbsp;&nbsp;
 							   <label class="am-padding-left-0" >类别:</label> 
 							   			<select id="type" name="type" style="width: 150px;"   >
					<option value="">---操作类型---</option>
					<option value="1">登录</option>
					<option value="2">添加</option>
					<option value="4">修改</option>
					<option value="3">删除</option>
				</select> 
				&nbsp;&nbsp;
 			
 			<input type="text" id="start_date" name="start_date" value="${start_date}" class="am-form-field" style="height:36px;width: 150px;display: inline;" placeholder="起始日期" data-am-datepicker readonly required />
				&nbsp;&nbsp;
			 <input type="text" id="end_date" name="end_date"  value="${end_date}" class="am-form-field" style="height:36px;width: 150px;display: inline;" placeholder="结束日期" data-am-datepicker readonly required />
								&nbsp;&nbsp;
					<button type="submit" id="sub_sel" class="am-btn am-btn-primary btn-loading-example" style="height:38px;width: 80px;display: inline; padding-top: -10px;">查询</button>		
				 	<table class="am-table am-table-striped am-table-hover table-main">
				<thead>
					<tr>
						<th class="table-check"><input type="checkbox" /></th>
						<th class="table-title">用户名</th>
						<th class="table-title">真实姓名</th>
						<th class="table-title">操作类型</th>
						<th class="table-title">操作详情</th>
						<th class="table-title">操作结果</th>
						<th class="table-type">操作时间</th>
					</tr>
				</thead>
				<tbody>
					#{if json!=null} #{set count:1/} #{list
					items:json?.page,as:'bean'}
					<tr>
						<td><input type="checkbox" /></td>
						<td>${bean?.userName}</td>
						<td>${bean?.realName}</td>
						<td>${bean?.type}</td>
						<td class="am-hide-sm-only">${bean?.optDetails}</td>
						<td class="am-hide-sm-only">${bean?.optResult}</td>
						<td>${bean?.optTime}</td>
 					</tr>
					#{/list} 
					#{/if}
				</tbody>
			</table>
						#{page currPage:json.currPage,pageSize:jsonpageSize,totalCount:json.totalCount}userName=${json.conditions.userName}&realName=${json.conditions.realName}&start_date=${json.conditions.start_date}&end_date=${json.conditions.end_date}&type=${json.conditions.type}#{/page}
			</div>
		</div>
				</form>
	</div>
